package com.wuwei.elearning.setting.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author wuwei
 * @since 2024-01-03
 */
@TableName("user")
@ApiModel(value = "User对象", description = "")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long account;

    private String password;

    private String name;

    /**
     * 如果是学员，表示学员所学的类型
     */
    private String license;

    /**
     * 0表示是管理员，1表示是教师，2表示是学生
     */
    private Integer status;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private Long editBy;

    private Long createdBy;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long gradeId;

    /**
     * 如果为补差学员，表示补差的课程
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String subject;

    private String avatar;//头像
}
